package mortal.game.view.system
{
	import com.mui.serialization.json.*;
	
	public class SystemSetterInfo extends Object
	{
		public var hidePlayerName:Boolean = false;
		public var hideLifeMagic:Boolean = true;
		public var hideNearPlayerPet:Boolean = false;
		public var hideLightAndEffect:Boolean = false;
		public var hideChatNotice:Boolean = false;
		public var refuseTrade:Boolean = false;
		public var refuseUnion:Boolean = false;
		public var refuseTeam:Boolean = false;
		public var refuseFriend:Boolean = false;
		public var clickToFight:Boolean = true;
		public var clickToPick:Boolean = false;
		public var haveNoSound:Boolean = false;
		public var musicVolume:Number = 0.3;
		public var effectSoundVolume:Number = 0.6;
		public var roleLife:Number = 0.7;
		public var roleMana:Number = 0.7;
		public var petLife:Number = 0.7;
		public var petMana:Number = 0.7;
		public var ShowSysBroadcast:Boolean = false;
		public var acceptInviteRest:Boolean = false;
		public var skillIdArr:Array;
		public var isGuideOpen:Boolean = false;
		public var showGuildPost:Boolean = false;
		public var isRoot:Boolean = false;
		
		public function SystemSetterInfo()
		{
			this.skillIdArr = [0, 0];
			
		}
		
		public function getString() : String
		{
			var _loc_1:* = new Object();
			_loc_1.hidePlayerName = this.hidePlayerName;
			_loc_1.hideNearPlayerPet = this.hideNearPlayerPet;
			_loc_1.hideLifeMagic = this.hideLifeMagic;
			_loc_1.hideLightAndEffect = this.hideLightAndEffect;
			_loc_1.hideChatNotice = this.hideChatNotice;
			_loc_1.refuseTrade = this.refuseTrade;
			_loc_1.refuseUnion = this.refuseUnion;
			_loc_1.refuseTeam = this.refuseTeam;
			_loc_1.refuseFriend = this.refuseFriend;
			_loc_1.clickToFight = this.clickToFight;
			_loc_1.clickToPick = this.clickToPick;
			_loc_1.haveNoSound = this.haveNoSound;
			_loc_1.musicVolume = this.musicVolume;
			_loc_1.effectSoundVolume = this.effectSoundVolume;
			_loc_1.roleLife = this.roleLife;
			_loc_1.roleMana = this.roleMana;
			_loc_1.petLife = this.petLife;
			_loc_1.petMana = this.petMana;
			_loc_1.ShowSysBroadcast = this.ShowSysBroadcast;
			_loc_1.acceptInviteRest = this.acceptInviteRest;
			_loc_1.skillIdArr = this.skillIdArr;
			_loc_1.isGuideOpen = this.isGuideOpen;
			_loc_1.showGuildPost = this.showGuildPost;
			_loc_1.isRoot = this.isRoot;
			return JSON.serialize(_loc_1);
		}
		
		public function deserializeInfo(param1:String) : Object
		{
			if (param1 == "")
			{
				return null;
			}
			var _loc_2:* = JSON.deserialize(param1);
			this.hidePlayerName = _loc_2.hidePlayerName;
			this.hideNearPlayerPet = _loc_2.hideNearPlayerPet;
			this.hideLifeMagic = _loc_2.hideLifeMagic;
			this.hideLightAndEffect = _loc_2.hideLightAndEffect;
			this.hideChatNotice = _loc_2.hideChatNotice;
			this.refuseTrade = _loc_2.refuseTrade;
			this.refuseUnion = _loc_2.refuseUnion;
			this.refuseTeam = _loc_2.refuseTeam;
			this.refuseFriend = _loc_2.refuseFriend;
			this.clickToFight = _loc_2.clickToFight;
			this.clickToPick = _loc_2.clickToPick;
			this.haveNoSound = _loc_2.haveNoSound;
			this.musicVolume = _loc_2.musicVolume;
			this.effectSoundVolume = _loc_2.effectSoundVolume;
			this.roleLife = _loc_2.roleLife;
			this.roleMana = _loc_2.roleMana;
			this.petLife = _loc_2.petLife;
			this.petMana = _loc_2.petMana;
			this.ShowSysBroadcast = _loc_2.ShowSysBroadcast;
			this.acceptInviteRest = _loc_2.acceptInviteRest;
			this.skillIdArr = _loc_2.skillIdArr;
			this.isGuideOpen = _loc_2.isGuideOpen;
			this.showGuildPost = _loc_2.showGuildPost;
			this.isRoot = _loc_2.isRoot;
			return _loc_2;
		}
		
		public function copy(param1:SystemSetterInfo) : void
		{
			this.clickToFight = param1.clickToFight;
			this.clickToPick = param1.clickToPick;
			this.effectSoundVolume = param1.effectSoundVolume;
			this.haveNoSound = param1.haveNoSound;
			this.hideChatNotice = param1.hideChatNotice;
			this.hideLifeMagic = param1.hideLifeMagic;
			this.hideNearPlayerPet = param1.hideNearPlayerPet;
			this.hidePlayerName = param1.hidePlayerName;
			this.hideLightAndEffect = param1.hideLightAndEffect;
			this.musicVolume = param1.musicVolume;
			this.refuseFriend = param1.refuseFriend;
			this.refuseTeam = param1.refuseTeam;
			this.refuseTrade = param1.refuseTrade;
			this.refuseUnion = param1.refuseUnion;
			this.roleLife = param1.roleLife;
			this.roleMana = param1.roleMana;
			this.petLife = param1.petLife;
			this.petMana = param1.petMana;
			this.ShowSysBroadcast = param1.ShowSysBroadcast;
			this.acceptInviteRest = param1.acceptInviteRest;
			if (param1.skillIdArr == null)
			{
				param1.skillIdArr = [0, 0];
			}
			this.skillIdArr = param1.skillIdArr.concat();
			this.isGuideOpen = param1.isGuideOpen;
			this.showGuildPost = param1.showGuildPost;
			this.isRoot = param1.isRoot;
			
		}
		
		public function setSystemInfo(param1:String, param2:Boolean) : void
		{
			switch(param1)
			{
				case "hidePlayerName":
				{
					this.hidePlayerName = param2;
					break;
				}
				case "hideNearPlayerPet":
				{
					this.hideNearPlayerPet = param2;
					break;
				}
				case "hideLifeMagic":
				{
					this.hideLifeMagic = param2;
					break;
				}
				case "hideLightAndEffect":
				{
					this.hideLightAndEffect = param2;
					break;
				}
				case "hideChatNotice":
				{
					this.hideChatNotice = param2;
					break;
				}
				case "refuseTrade":
				{
					this.refuseTrade = param2;
					break;
				}
				case "refuseUnion":
				{
					this.refuseUnion = param2;
					break;
				}
				case "refuseTeam":
				{
					this.refuseTeam = param2;
					break;
				}
				case "refuseFriend":
				{
					this.refuseFriend = param2;
					break;
				}
				case "clickToFight":
				{
					this.clickToFight = param2;
					break;
				}
				case "clickToPick":
				{
					this.clickToPick = param2;
					break;
				}
				case "haveNoSound":
				{
					this.haveNoSound = param2;
					break;
				}
				case "ShowSysBroadcast":
				{
					this.ShowSysBroadcast = param2;
					break;
				}
				case "acceptInviteRest":
				{
					this.acceptInviteRest = param2;
					break;
				}
				case "showGuildPost":
				{
					this.showGuildPost = param2;
					break;
				}
				default:
				{
					break;
				}
			}
			
		}
		
	}
}
